// https://nuxt.com/docs/api/configuration/nuxt-config
export default defineNuxtConfig({
  compatibilityDate: '2024-11-01',
  devtools: { enabled: true },
  modules: [
		'@nuxt/eslint', 
		'@bg-dev/nuxt-naiveui', 
		'@pinia/nuxt', 
		'@pinia-plugin-persistedstate/nuxt',
		'@vueuse/nuxt'
	],
	devServer: {
		host: '0.0.0.0',
		port: 80
	},
	naiveui: {
		spaLoadingTemplate: {
			name: "bar-scale", // 使用条形缩放加载动画
		}
	},
	piniaPersistedstate: {
		storage: 'sessionStorage' // + 持久化
	},
	app: {
		head: {
			title: '华北教学管理系统'
		}
	},
	css: ['@/css/main.css']
})
